package com.zbkj.crmeb.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.CommonPage;
import com.common.PageParamRequest;
import com.zbkj.crmeb.member.model.MerchantMemberType;
import com.zbkj.crmeb.member.vo.MerchantMemberStyleVO;
import com.zbkj.crmeb.member.vo.MerchantMemberTypeVO;

/**
 * <p>
 * 商户会员类型表 服务类
 * </p>
 *
 * @author xx
 * @since 2022-05-10
 */
public interface IMerchantMemberTypeService extends IService<MerchantMemberType> {

    /**
     * 商户会员类型列表查询
     * @param merId
     * @param pageParamRequest
     * @return com.common.CommonPage<com.zbkj.crmeb.member.model.MerchantMemberType>
     */
    CommonPage<MerchantMemberType> getMemberType(Integer merId, PageParamRequest pageParamRequest);

    /**
     * 商户会员类型编辑
     * @param merchantMemberTypeVO
     * @return java.lang.Boolean
     */
    Boolean updMemberType(MerchantMemberTypeVO merchantMemberTypeVO);

    /**
     * 商户会员协议编辑
     * @param merId
     * @param membershipAgreement
     * @return java.lang.Boolean
     */
    Boolean updMembershipAgreement(Integer merId, String membershipAgreement);

    /**
     * 商户会员协议查询
     * @param merId
     * @return java.lang.Boolean
     */
    String getMembershipAgreement(Integer merId);

    /**
     * 商户会员样式编辑
     * @param merId
     * @param merchantMemberStyleVO
     * @return java.lang.Boolean
     */
    Boolean updMemberStyle(Integer merId, MerchantMemberStyleVO merchantMemberStyleVO);

    /**
     * 商户会员样式查询
     * @param merId
     * @return java.lang.Boolean
     */
    MerchantMemberStyleVO getMemberStyle(Integer merId);

    /**
     * 查询商户是否有用户开通会员
     * @param merId
     * @return java.lang.Boolean
     */
    Boolean getMemberByMerId(Integer merId);



}
